package cn.iocoder.yudao.module.vos.controller.admin.datamatchtask.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 数据匹配下载 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DataMatchTaskRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "29089")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "任务名称", example = "李四")
    @ExcelProperty("任务名称")
    private String taskName;

    @Schema(description = "任务参数")
    @ExcelProperty(value = "任务参数", converter = DictConvert.class)
    @DictFormat("task_params") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String taskParams;

    @Schema(description = "任务状态", example = "2")
    @ExcelProperty(value = "任务状态", converter = DictConvert.class)
    @DictFormat("task_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String taskStatus;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "检索时间")
    @ExcelProperty("检索时间")
    private Integer retrievalDays;

    @Schema(description = "下载URL", example = "https://www.iocoder.cn")
    @ExcelProperty("下载URL")
    private String downloadUrl;

    @Schema(description = "匹配对象", example = "1")
    @ExcelProperty(value = "匹配对象", converter = DictConvert.class)
    @DictFormat("phone_match_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String matchType;

}